package com.ibeeking.found.workflow.service.common.constants.enums;

public enum FormTypeEnum {
    ONLINE_DESIGN(1, "在线设计"),
    CUSTOM_DEVELOP(2, "自行开发");

    private Integer type;
    private String name;

    FormTypeEnum(Integer type, String name) {
        this.type = type;
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public String getName() {
        return name;
    }

    public static String getNameByType(Integer type) {
        for (FormTypeEnum enumObj : values()) {
            if (enumObj.getType().equals(type)) {
                return enumObj.getName();
            }
        }
        return null;
    }
}
